<?php

use yii\db\Migration;

/**
 * Class m180116_055830_alter_project_pre_evaluation_interview_table
 */
class m180116_055830_add_project_pre_evaluation_interview_table extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        $this->addColumn('project_pre_evaluation_interview','comparison_property2',$this->string()->comment('可比物业2'));
        $this->addColumn('project_pre_evaluation_interview','comparison_property3',$this->string()->comment('可比物业3'));
        $this->addColumn('project_pre_evaluation_interview','comparison_property4',$this->string()->comment('可比物业4'));

    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
        echo "m180116_055830_alter_project_pre_evaluation_interview_table cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m180116_055830_alter_project_pre_evaluation_interview_table cannot be reverted.\n";

        return false;
    }
    */
}
